﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using YiDa.Infrastructure;

namespace SYMetro.Web.MVC.App_Code
{
    public class WebServiceProxy<T> :IDisposable where T : IApplicationServiceContract
    {
        public T Channel
        {
            get
            {
                return ServiceLocator.Instance.GetService<T>();
            }
        }

        public void Dispose()
        {
            //do nothing
        }
    }
}